package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 划拨记录
 *
 * @author 刘聪
 */
@Data
@TableName(value = "tz_subscribe_transfer_record")
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "划拨记录")
public class SubScribeTransferRecord implements Serializable {


    /**
     * 主键
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 申购主键
     */
    @TableField(value = "batch_id")
    private Integer batchId;

    /**
     * 店铺主键
     */
    @TableField(value = "shop_id")
    private Long shopId;

    /**
     * 成交数量
     */
    @TableField(value = "sell_num")
    private Integer sellNum;

    /**
     * 成交金额
     */
    @TableField(value = "sell_money")
    private BigDecimal sellMoney;

    /**
     * 成交手续费
     */
    @TableField(value = "sell_commissio")
    private BigDecimal sellCommissio;
    /**
     * 成交数量
     */
    @TableField(value = "sell_num_transfer")
    private Integer sellNumTransfer;

    /**
     * 成交金额
     */
    @TableField(value = "sell_money_transfer")
    private BigDecimal sellMoneyTransfer;

    /**
     * 成交手续费
     */
    @TableField(value = "sell_commissio_transfer")
    private BigDecimal sellCommissioTransfer;
    /**
     * 划拨状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 总发布手续费
     */
    @TableField(value = "pub_commissio_all")
    private BigDecimal pubCommissioAll;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime = LocalDateTime.now();

    /**
     * 划转时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 账号
     */
    @TableField(value = "to_settle_account")
    private String toSettleAccount;



}
